package me.fanchaoo.web.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import me.fanchaoo.web.dto.UserDTO;
import me.fanchaoo.web.request.CancelLikeRequest;
import me.fanchaoo.web.request.LikeRequest;
import me.fanchaoo.web.request.QueryLikeUserRequest;
import me.fanchaoo.web.request.SeeRequest;
import me.fanchaoo.web.response.BaseResponse;
import me.fanchaoo.web.service.LikeService;
import me.fanchaoo.web.service.SeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

@Api(description = "点赞")
@RestController
@RequestMapping("/see")
public class SeeController {

    @Autowired
    private SeeService seeService;

    @ApiOperation(value = "浏览")
    @PostMapping(value = "/see")
    public BaseResponse see(@Valid @RequestBody SeeRequest request) {

        seeService.see(request);
        return new BaseResponse();
    }

}
